<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
    <script type="text/javascript">
        function check(obj) {
            var v = obj.value.substr(obj.value.length - 3);
            v = v.toLowerCase();
            if ("xls" !== v) {
                showTip('tip', '文件类型必须是*.xls', 4000);
                var fileobj = document.getElementById(obj.id);
                fileobj.outerHTML = fileobj.outerHTML;
                return false;
            }
        }
    </script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <form class="form-horizontal" th:object="${Excel}" method="post"
                  th:action="@{/foot/footPerson/importSCardExcel}" name="form" enctype="multipart/form-data"
                  th:if="${session.footUser.qx.text == '管理员'}">
                <h3 class="header smaller lighter blue"><em class="icon-upload-alt"></em>上传球员S卡Excel</h3>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span8">
                        <div class="control-group">
                            <label class="control-label" for="img">上传文件:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="file" name="img" id="img" onchange="check(this);" class="input_fix"/>
                            </div>
                        </div>
                    </div>
                    <div class="span4">
                        <div class="control-group">
                            <span style="color:red" th:if="${#fields.hasErrors('img')}"
                                  th:errors="*{img}">Name Error</span>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="text-center span12">
                        <button class="btn btn-primary" type="submit"><em class="icon-save"></em>提交</button>
                        <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                        <a class="btn" type="button" th:href="@{/foot/footPerson/search}"><em
                                class="icon-arrow-left"></em>返回</a>
                    </div>
                </div>
            </form>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div><!--/#main-content-->
</div><!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>
